package systemstream;

import java.io.*;

/**
 * Created by 5406160@qq.com on LiBoWen 李博闻.
 *
 * @ClassName : SystemInDemo
 * @Author : 54061
 * @Date: 2022/2/14 15:05
 */
public class SystemInDemo {
    public static void main(String[] args) throws IOException {
        //转换流 --> 字符流
        //高效流 --> 字符流变成高效字符流
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));//源 固定: 键盘
        BufferedWriter bw = new BufferedWriter(new FileWriter("T_Day20\\aaa\\cc.txt"));

        while(true){
            System.out.println("请您输入一句话:");
            String line = br.readLine();
            bw.write(line);
            bw.newLine();
            bw.flush();
        }


        //br.close();
    }
}
